package router

import (
	"zsc-boot/app/customer/api"
	"zsc-boot/core/web"
)

func InitCustomerRouterGroup() {
	customerApi := api.NewCustomerApi()

	cronGroup := web.GetGin("public").Group("customer/crone")
	cronGroup.GET("autoAssigned", customerApi.AutoAssigned)
	cronGroup.GET("cronRemind", customerApi.CronRemind)
	cronGroup.GET("cronClear", customerApi.CronClear)
	cronGroup.GET("export", customerApi.ExportMobile)

	group := web.GetGin().Group("customer")
	group.POST("myList", customerApi.MyList)
	group.POST("allList", customerApi.AllList)
	group.POST("publicList", customerApi.PublicList)
	group.PUT("batchUpdate", customerApi.BatchUpdate)
	group.GET("", customerApi.Detail)
	group.PUT("", customerApi.Update)
	group.POST("", customerApi.Create)
	group.POST("follow", customerApi.Follow)
	group.GET("dial", customerApi.Dial)
	group.PUT("collect", customerApi.Collect)
	group.PUT("batchCollect", customerApi.BatchCollect)
	group.POST("remind", customerApi.Remind)
	group.POST("myNext", customerApi.MyNext)
	group.POST("allNext", customerApi.AllNext)
	group.POST("publicNext", customerApi.PublicNext)
}
